<html>
<head>
<title>Ajax with jQuery Example</title>
<script type="text/JavaScript" src="jquery.js"></script>
<script type="text/JavaScript">
  // var server="http://localhost:8080";
  var server="http://192.168.0.99:8080";

$(document).ready(function(){
    $("#init").click(function() {
        $.get(server + "/init", function(xml) {
		$("div#count_value").text($("Value",xml).text());
	});
    });
    $("#increment").click(function() {
        $.get(server + "/increment", function(xml) {
		$("div#count_value").text($("Value",xml).text());
	});
    });
});
</script>
</head>
<body>
<div id="wrapper">
<input type="submit" id="init" value="Init">
<input type="submit" id="increment" value="Increment">
</div>
  <div id="count_value">
	0
  </div>
  <div id="debug"> </div>
</body>
</html>

